package com.cause.entiy.user;

import java.util.Date;

public class RoleUser {
    private Integer ruid;

    private Integer uid;

    private Integer rid;

    private Date rtime;

    private String rbz;

    public Integer getRuid() {
        return ruid;
    }

    public void setRuid(Integer ruid) {
        this.ruid = ruid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Date getRtime() {
        return rtime;
    }

    public void setRtime(Date rtime) {
        this.rtime = rtime;
    }

    public String getRbz() {
        return rbz;
    }

    public void setRbz(String rbz) {
        this.rbz = rbz;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RoleUser other = (RoleUser) that;
        return (this.getRuid() == null ? other.getRuid() == null : this.getRuid().equals(other.getRuid()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getRtime() == null ? other.getRtime() == null : this.getRtime().equals(other.getRtime()))
            && (this.getRbz() == null ? other.getRbz() == null : this.getRbz().equals(other.getRbz()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRuid() == null) ? 0 : getRuid().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getRtime() == null) ? 0 : getRtime().hashCode());
        result = prime * result + ((getRbz() == null) ? 0 : getRbz().hashCode());
        return result;
    }
}